﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Microsoft.Reporting.WinForms;

namespace Acsys
{
    public partial class PrintPreviewForm : Form
    {
        public PrintPreviewForm(string reportPath, string reportDataSourceName, DataSet ds)
        {
            InitializeComponent();
            reportViewer1.LocalReport.ReportPath = reportPath;
            reportViewer1.LocalReport.DataSources.Add(new ReportDataSource(reportDataSourceName, new BindingSource(ds, "Report")));
            reportViewer1.RefreshReport();
        }

        private void PrintPreviewForm_Load(object sender, EventArgs e)
        {

        }
    }
}
